﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using BLToolkit.Mapping;
using BLToolkit.DataAccess;
using Entities.Admin;

namespace Entities.PBKT
{
	public class DoiTuyen : BaseEntity<DoiTuyen>
	{

		[MapField("MaDT"), PrimaryKey]
		public String MaDT { get; set; }
		public String TenDT { get; set; }
		public String TruongDoan { get; set; }
		public int MaGD { get; set; }
		public int Diem { get; set; }
		public int SoBanThang { get; set; }
		public int SoBanThua { get; set; }
		[MapIgnore]
		public int HieuSo { get { return SoBanThang - SoBanThua; }
		set { HieuSo= SoBanThang - SoBanThua; }}
		[MapIgnore]
		public String TenGiaiDau { get { return GiaiDau.Objects.GetById(MaGD).TenGiaiDau; } }
	}
}
